import request from '@/utils/request'

export function lineData30(params) {
  return request({
    url: '/api/char/cnzz',
    method: 'get',
    params
  })
}

export function get_cnzz_config(params) {
  return request({
    url: '/api/cnzz/config',
    method: 'get',
    params
  })
}

export function update_cnzz_config(data) {
  return request({
    url: '/api/cnzz/config',
    method: 'post',
    data
  })
}

export function get_cnzz_data(params) {
  return request({
    url: '/api/spider/cnzz',
    method: 'get',
    params
  })
}

// 获取厂商配制
export function get_manufacturer_config(params) {
  return request({
    url: '/api/manufacturer/earnings/config',
    method: 'get',
    params
  })
}
// 修改厂商配制

export function update_manufacturer_config(data) {
  return request({
    url: '/api/manufacturer/earnings/config',
    method: 'post',
    data
  })
}
// 获取厂商收益

export function get_manufacturer_earnings(params) {
  return request({
    url: '/api/manufacturer/earnings',
    method: 'get',
    params
  })
}
// 厂商收益列表
export function manufacturer_earnings_list(params) {
  return request({
    url: '/api/manufacturer/earnings/list',
    method: 'get',
    params
  })
}

// 获取数据监控配制
export function get_data_monitoring_config(params) {
  return request({
    url: '/api/data/monitoring',
    method: 'get',
    params
  })
}

// 设置数据监控配制
export function set_data_monitoring_config(data) {
  return request({
    url: '/api/data/monitoring',
    method: 'post',
    data
  })
}

// 获取uv监控配制
export function get_uv_monitoring_config(params) {
  return request({
    url: '/api/uv/monitoring',
    method: 'get',
    params
  })
}

// 设置uv监控配制
export function set_uv_monitoring_config(data) {
  return request({
    url: '/api/uv/monitoring',
    method: 'post',
    data
  })
}

// 设置uv监控配制
export function get_uv_monitoring_history(params) {
  return request({
    url: '/api/monitoring/history',
    method: 'get',
    params
  })
}

// 设置uv监控配制
export function del_uv_monitoring_history(data) {
  return request({
    url: '/api/monitoring/history',
    method: 'post',
    data
  })
}


